home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / mfpic / setup / unix / Makefile < prev    next >
Makefile  |  1992-11-25  |  3KB  |  132 lines

  1. # Makefile for mfpic - 03:17 GMT Thu 26 Nov 1992 - Geoffrey Tobin.
  2. # For mfpic version  0.2  of Wed 9 Sep 92.
  3. #
  4. # Email to  ecsgrt@luxor.latrobe.edu.au  (Geoffrey Tobin)
  5. #
  6. # The targets are:  dvi, ps, clean, manifest, zip, unzip, cat, shar,
  7. #                   sh and unshar.
  8.  
  9. SRCS =  Makefile README.UNIX \
  10.   graphbase.mf lamfpic.tex lapictures.tex \
  11.   mfpic.tex mfpicdoc.tex objects.tex pictures.tex setups.tex
  12.  
  13. SRC1 =  MANIFEST $(SRCS)
  14.  
  15. OUTPUT =  *.dvi  *log  *.aux  *.tfm  *.*gf  *.*pk  *.ps \
  16.           pics.mf lapics.mf objs.mf
  17.  
  18. # DVI -> PostScript converter.
  19. # This is my favorite, Tom Rokicki's dvips.
  20. # Available at labrea.stanford.edu, in directory ./pub.
  21. # Also at many other sites.  Ask archie.  Archie is a database that
  22. # lists much archived software worldwide.
  23.  
  24. DVIPS=dvips -Z
  25.  
  26. # ZIP and UNZIP programs.
  27. # These are the portable versions.  Widely available.  Ask archie.
  28.  
  29. ZIP=zip
  30. UNZIP=unzip
  31.  
  32. default:  dvi  pk
  33.  
  34. # DVI files.
  35. # Make DVI files by default, because they are useful for all output
  36. # drivers.
  37.  
  38. dvi:  setups.dvi mfpicdoc.dvi pictures lapictures objects
  39.  
  40. # Instructions for Setting up for Installation.
  41.  
  42. setups.dvi:  setups.tex
  43.     tex setups
  44.  
  45. # User Documentation.
  46.  
  47. mfpicdoc.dvi:  mfpicdoc.tex
  48.     tex mfpicdoc
  49.  
  50. # TeX test of mfpic.
  51.  
  52. pictures:  pictures.tex mfpic.tex graphbase.mf
  53.     tex pictures
  54.     mf '\mode=localfont; mag=magstep(1); input ./pics'
  55.     tex pictures
  56.  
  57. # LaTeX test of mfpic.
  58.  
  59. lapictures:  lapictures.tex lamfpic.tex mfpic.tex graphbase.mf
  60.     latex lapictures
  61.     mf '\mode=localfont; mag=magstep(0); input ./lapics'
  62.     latex lapictures
  63.  
  64. # TeX test of a variety of mfpic objects.
  65.  
  66. objects:  objects.tex mfpic.tex graphbase.mf
  67.     tex objects
  68.     mf '\mode=localfont; mag=magstep(0); input ./objs'
  69.     tex objects
  70.  
  71. # PK (packed) font format.
  72. # Used by dvips and many other output drivers.
  73.  
  74. pk:   pics.360gf  lapics.300gf  objs.360gf
  75.     gftopk pics.360gf
  76.     gftopk lapics.300gf
  77.     gftopk objs.360gf
  78.  
  79. # PostScript files.
  80. # PostScript previewers and printers are common, though not universal.
  81.  
  82. ps:  setups.ps  mfpicdoc.ps  pictures.ps  lapictures.ps  objects.ps
  83.  
  84. setups.ps:  setups.dvi
  85.     $(DVIPS) setups -o setups.ps
  86.  
  87. mfpicdoc.ps:  mfpicdoc.dvi
  88.     $(DVIPS) mfpicdoc -o mfpicdoc.ps
  89.  
  90. pictures.ps:  pictures.dvi pics.360pk
  91.     $(DVIPS) pictures -o pictures.ps
  92.  
  93. lapictures.ps:  lapictures.dvi pics.300pk
  94.     $(DVIPS) lapictures -o lapictures.ps
  95.  
  96. objects.ps:  objects.dvi objs.360pk
  97.     $(DVIPS) objects -o objects.ps
  98.  
  99. clean:
  100.     rm $(OUTPUT)
  101.  
  102. # The rest of this Makefile is intended for making a distribution,
  103. # and for unpacking it.
  104.  
  105. manifest:  $(SRCS)
  106.     ls -l $(SRCS) > MANIFEST
  107.  
  108. # Zip file.
  109. # Portable zip and unzip are free; Valeria in California is one site
  110. # that has them.  See the comp.misc "archives" posting for sites.
  111.  
  112. zip:  $(SRC1)
  113.     $(ZIP) mfpic.zip $(SRC1)
  114.  
  115. unzip:  mfpic.zip
  116.     $(UNZIP) mfpic
  117.  
  118. # shar is available for both unix and DOS.
  119.  
  120. shar:  $(SRC1)
  121.     shar $(SRC1) > mfpic.shar
  122.  
  123. # Unshar using Bourne shell, of which there are versions for DOS!
  124.  
  125. sh:  mfpic.shar
  126.     sh mfpic.shar
  127.  
  128. # Or use "unshar", which is also available for DOS from Simtel-20.
  129.  
  130. unshar:  mfpic.shar
  131.     unshar mfpic.shar
  132.